Doki's Adventure
dokisadventurewiki
https://dokisadventure.miraheze.org/wiki/Main_Page
MediaWiki 1.40.1
first-letter
Media
Special
Talk
User
User talk
Doki's Adventure
Doki's Adventure talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Module
Module talk
Main Page
0
1
1
2023-10-23T09:43:58Z
MediaWiki default
1
Create main page
wikitext
text/x-wiki
__NOTOC__
== Welcome to {{SITENAME}}! ==
This Main Page was created automatically and it seems it hasn't been replaced yet.
=== For the bureaucrat(s) of this wiki ===
Hello, and welcome to your new wiki! Thank you for choosing Miraheze for the hosting of your wiki, we hope you will enjoy our hosting.
You can immediately start working on your wiki or whenever you want.
Need help? No problem! We will help you with your wiki as needed. To start, try checking out these helpful links:
* [[mw:Special:MyLanguage/Help:Contents|MediaWiki guide]] (e.g. navigation, editing, deleting pages, blocking users)
* [[meta:Special:MyLanguage/FAQ|Miraheze FAQ]]
* [[meta:Special:MyLanguage/Request features|Request settings changes on your wiki]]. (Extensions, Skin and Logo/Favicon changes should be done through [[Special:ManageWiki]] on your wiki, see [[meta:Special:MyLanguage/ManageWiki|ManageWiki]] for more information.)
==== I still don't understand X! ====
Well, that's no problem. Even if something isn't explained in the documentation/FAQ, we are still happy to help you. You can find us here:
* [[meta:Special:MyLanguage/Help center|On our own Miraheze wiki]]
* On [[phab:|Phabricator]]
* On [https://miraheze.org/discord Discord]
* On IRC in #miraheze on irc.libera.chat ([irc://irc.libera.chat/%23miraheze direct link]; [https://web.libera.chat/?channel=#miraheze webchat])
=== For visitors of this wiki ===
Hello, the default Main Page of this wiki (this page) has not yet been replaced by the bureaucrat(s) of this wiki. The bureaucrat(s) might still be working on a Main Page, so please check again later!
21236ac3f8d65e5563b6da6b70815ca6bf1e6616
2
1
2023-10-23T13:56:02Z
Pieretix
2
/* Welcome to {{SITENAME}}! */
wikitext
text/x-wiki
__NOTOC__
== Welcome to {{SITENAME}}! ==
'''Doki's Adventures''' is a television series first broadcast on December 23, 2009 by Discovery Kids.
=== For the bureaucrat(s) of this wiki ===
Hello, and welcome to your new wiki! Thank you for choosing Miraheze for the hosting of your wiki, we hope you will enjoy our hosting.
You can immediately start working on your wiki or whenever you want.
Need help? No problem! We will help you with your wiki as needed. To start, try checking out these helpful links:
* [[mw:Special:MyLanguage/Help:Contents|MediaWiki guide]] (e.g. navigation, editing, deleting pages, blocking users)
* [[meta:Special:MyLanguage/FAQ|Miraheze FAQ]]
* [[meta:Special:MyLanguage/Request features|Request settings changes on your wiki]]. (Extensions, Skin and Logo/Favicon changes should be done through [[Special:ManageWiki]] on your wiki, see [[meta:Special:MyLanguage/ManageWiki|ManageWiki]] for more information.)
==== I still don't understand X! ====
Well, that's no problem. Even if something isn't explained in the documentation/FAQ, we are still happy to help you. You can find us here:
* [[meta:Special:MyLanguage/Help center|On our own Miraheze wiki]]
* On [[phab:|Phabricator]]
* On [https://miraheze.org/discord Discord]
* On IRC in #miraheze on irc.libera.chat ([irc://irc.libera.chat/%23miraheze direct link]; [https://web.libera.chat/?channel=#miraheze webchat])
=== For visitors of this wiki ===
Hello, the default Main Page of this wiki (this page) has not yet been replaced by the bureaucrat(s) of this wiki. The bureaucrat(s) might still be working on a Main Page, so please check again later!
9f37c4e1d82464bc745619743c14a568111c03ee
3
2
2023-10-23T13:57:35Z
Pieretix
2
/* Welcome to {{SITENAME}}! */
wikitext
text/x-wiki
__NOTOC__
== Welcome to {{SITENAME}}! ==
'''Doki's Adventures''' is a television series first broadcast on December 23, 2009 by Discovery Kids.
== Explore ==
*Series
*Characters
*Episodes
=== For the bureaucrat(s) of this wiki ===
Hello, and welcome to your new wiki! Thank you for choosing Miraheze for the hosting of your wiki, we hope you will enjoy our hosting.
You can immediately start working on your wiki or whenever you want.
Need help? No problem! We will help you with your wiki as needed. To start, try checking out these helpful links:
* [[mw:Special:MyLanguage/Help:Contents|MediaWiki guide]] (e.g. navigation, editing, deleting pages, blocking users)
* [[meta:Special:MyLanguage/FAQ|Miraheze FAQ]]
* [[meta:Special:MyLanguage/Request features|Request settings changes on your wiki]]. (Extensions, Skin and Logo/Favicon changes should be done through [[Special:ManageWiki]] on your wiki, see [[meta:Special:MyLanguage/ManageWiki|ManageWiki]] for more information.)
==== I still don't understand X! ====
Well, that's no problem. Even if something isn't explained in the documentation/FAQ, we are still happy to help you. You can find us here:
* [[meta:Special:MyLanguage/Help center|On our own Miraheze wiki]]
* On [[phab:|Phabricator]]
* On [https://miraheze.org/discord Discord]
* On IRC in #miraheze on irc.libera.chat ([irc://irc.libera.chat/%23miraheze direct link]; [https://web.libera.chat/?channel=#miraheze webchat])
=== For visitors of this wiki ===
Hello, the default Main Page of this wiki (this page) has not yet been replaced by the bureaucrat(s) of this wiki. The bureaucrat(s) might still be working on a Main Page, so please check again later!
7be0d62be7f8782a654ff3ba5d98b73a649ae99b
4
3
2023-10-23T13:58:13Z
Pieretix
2
/* Welcome to {{SITENAME}}! */
wikitext
text/x-wiki
__NOTOC__
== Welcome to {{SITENAME}}! ==
'''Doki's Adventures''' is a television series first broadcast on December 23, 2009 by Discovery Kids Latin America.
== Explore ==
*Series
*Characters
*Episodes
=== For the bureaucrat(s) of this wiki ===
Hello, and welcome to your new wiki! Thank you for choosing Miraheze for the hosting of your wiki, we hope you will enjoy our hosting.
You can immediately start working on your wiki or whenever you want.
Need help? No problem! We will help you with your wiki as needed. To start, try checking out these helpful links:
* [[mw:Special:MyLanguage/Help:Contents|MediaWiki guide]] (e.g. navigation, editing, deleting pages, blocking users)
* [[meta:Special:MyLanguage/FAQ|Miraheze FAQ]]
* [[meta:Special:MyLanguage/Request features|Request settings changes on your wiki]]. (Extensions, Skin and Logo/Favicon changes should be done through [[Special:ManageWiki]] on your wiki, see [[meta:Special:MyLanguage/ManageWiki|ManageWiki]] for more information.)
==== I still don't understand X! ====
Well, that's no problem. Even if something isn't explained in the documentation/FAQ, we are still happy to help you. You can find us here:
* [[meta:Special:MyLanguage/Help center|On our own Miraheze wiki]]
* On [[phab:|Phabricator]]
* On [https://miraheze.org/discord Discord]
* On IRC in #miraheze on irc.libera.chat ([irc://irc.libera.chat/%23miraheze direct link]; [https://web.libera.chat/?channel=#miraheze webchat])
=== For visitors of this wiki ===
Hello, the default Main Page of this wiki (this page) has not yet been replaced by the bureaucrat(s) of this wiki. The bureaucrat(s) might still be working on a Main Page, so please check again later!
195cc17f5be3be181da0ff747914c0e410c24b79
Doki's Adventures
0
2
5
2023-10-23T14:01:04Z
Pieretix
2
Created page with "{{Series_Infobox|genre = * Adventure * Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]] * [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3..."
wikitext
text/x-wiki
{{Series_Infobox|genre = * Adventure
* Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3
Original Production Format: 16:9,720i?}}
1c01808f9a03288dd445c996ca658f1dcb6806f4
7
5
2023-10-23T14:04:30Z
Pieretix
2
wikitext
text/x-wiki
{{Series_Infobox|genre = * Adventure
* Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3
Original Production Format: 16:9,720i?}}
'''Doki's Adventures''' is a television series first broadcast on December 23, 2009 by Discovery Kids Latin America.
No more episodes were made, but these were broadcast again days later. It is not known with certainty why no more were done.
c8ed6852fed299a78248a8db0b4dbef0f38d3479
8
7
2023-10-23T14:08:54Z
Pieretix
2
wikitext
text/x-wiki
{{Series_Infobox|genre = * Adventure
* Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3
Original Production Format: 16:9,720i?}}
'''Doki's Adventures''' is a television series first broadcast on December 23, 2009 by Discovery Kids Latin America.
No more episodes were made, but these were broadcast again days later. It is not known with certainty why no more were done.
==Episodes==
''See [[List of episodes of Doki's Adventures]].''
5a2d740a48c9ab35ee1ec9b9af39a43afad7bc8d
Template:Series Infobox
10
3
6
2023-10-23T14:01:27Z
Pieretix
2
Created page with "{{Series_Infobox|genre = * Adventure * Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]] * [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3..."
wikitext
text/x-wiki
{{Series_Infobox|genre = * Adventure
* Education|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]|country_of_origin = Canada|languages = English, Spanish|episodes = 2|production_company(s) = * [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]|original_network = [[Discovery Kids|Discovery Kids Latin America]]|running_time = 10 minutes|original_release = December 23, 2009|image1 = Doki Adventures.jpg|Format=Airing format: 480i 4:3
Original Production Format: 16:9,720i?}}
1c01808f9a03288dd445c996ca658f1dcb6806f4
13
6
2023-10-24T13:15:26Z
PercyUK
4
wikitext
text/x-wiki
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 1em 1em;
width: 270px;
border-spacing: 0;
padding: 0;
border: 1px solid {{{border|#ccc}}};
background: {{{background|}}};
font-size: 12px;
| abovestyle =
font-size: 18px;
line-height: 1.25;
padding: 12px 9px;
background: {{{border|#ccc}}};
color: {{{color|}}};
| imagestyle =
text-align: center;
padding: 0;
| captionstyle =
padding: 3px;
| headerstyle =
background: {{{border|#ccc}}};
color: {{{color|}}};
font-size: 14px;
padding: 5px 9px;
| labelstyle =
vertical-align: top;
text-align: left;
padding: 5px 5px 5px 10px;
border-top: 1px solid {{{border|#ccc}}};
width: 80px;
| datastyle =
vertical-align: top;
padding: 5px 10px 5px 0;
border-top: 1px solid {{{border|#ccc}}};
|above = {{{title|{{PAGENAME}}}}}
|image = {{#if: {{{image|}}}| [[File:{{{image}}}|268px|link=]] }}
|caption = {{{imagecaption|}}}
|label1 = Genre
|data1 = {{{genre|}}}
|label2 = Based on
|data2 = {{{based_on|}}}
|label3 = Country of origin
|data3 = {{{country_of_origin|}}}
|label4 = Languages
|data4 = {{{languages|}}}
|label5 = Episodes
|data5 = {{{episodes|}}}
|header6 = {{#if:{{{production_company(s)|}}}| Production }}
|label7 = Production company
|data7 = {{{production_company(s)|}}}
|header8 = {{#if:{{{original_network|}}}{{{running_time|}}}{{{original_release|}}}{{{format|}}}| Release }}
|label9 = Original network
|data9 = {{{original_network|}}}
|label10 = Running time
|data10 = {{{running_time|}}}
|label11 = Original release
|data11 = {{{original_release|}}}
|label12 = Format
|data12 = {{{format|}}}
}}<noinclude>
<br clear="all">
==Example==
{{Series Infobox
|border = #6eb72b
|color = <!-- header text --> white
|background = white
|title = Doki's Adventures
|image = Doki.png
|genre =
* Adventure
* Education
|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]
|country_of_origin = [[image:Flag of Canada.svg|20px|link=]] Canada
|languages =
[[image:Flag of United Kingdom.svg|20px|link=]] English <br>
[[image:Flag of Spain.svg|20px|link=]] Spanish
|episodes = 2
|production_company(s) =
* [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]
|original_network = [[Discovery Kids|Discovery Kids Latin America]]
|running_time = 10 minutes
|original_release = December 23, 2009
|format =
Airing format: 480i 4:3
Original Production Format: 16:9,720i?
}}
<pre>
{{Series Infobox
|border = #6eb72b
|color = <!-- header text --> white
|background = white
|title = Doki's Adventures
|image = Doki.png
|genre =
* Adventure
* Education
|based_on = Mascots of [[Discovery Kids|Discovery Kids Latin America]]
|country_of_origin = [[image:Flag of Canada.svg|20px|link=]] Canada
|languages =
[[image:Flag of United Kingdom.svg|20px|link=]] English <br>
[[image:Flag of Spain.svg|20px|link=]] Spanish
|episodes = 2
|production_company(s) =
* [[Nelvana Limited]]
* [[Discovery Kids|Discovery Kids Latin America]]
|original_network = [[Discovery Kids|Discovery Kids Latin America]]
|running_time = 10 minutes
|original_release = December 23, 2009
|format =
Airing format: 480i 4:3
Original Production Format: 16:9,720i?
}}
</pre>
</noinclude>
7b2a8b84d47148165a580641d69b9f15f7c9dd74
List of episodes of Doki's Adventures
0
4
9
2023-10-23T14:19:56Z
Pieretix
2
Created page with "Here are all the episodes of Doki's Adventures. ==Egypt Explorers== ===Synopsis=== Doki and his friends go to Egypt to learn about hieroglyphs. ===Release date=== December 23, 2009. ===Title in Spanish=== «Exploradores de tumbas» ==An Ice Adventure== ===Synopsis=== Fico goes to the South Pole to visit his aunt Erica but he was in the wrong place. His team, knowing this, decide to go to Antarctica to rescue him. ===Release date=== December 23, 2009 ===Title in Spanish==..."
wikitext
text/x-wiki
Here are all the episodes of Doki's Adventures.
==Egypt Explorers==
===Synopsis===
Doki and his friends go to Egypt to learn about hieroglyphs.
===Release date===
December 23, 2009.
===Title in Spanish===
«Exploradores de tumbas»
==An Ice Adventure==
===Synopsis===
Fico goes to the South Pole to visit his aunt Erica but he was in the wrong place. His team, knowing this, decide to go to Antarctica to rescue him.
===Release date===
December 23, 2009
===Title in Spanish==
«Una aventura en el hielo»
f5bde7dec27cc2b20c9213940cb5d647fe7b1c3b
10
9
2023-10-23T14:20:35Z
Pieretix
2
/* Egypt Explorers */
wikitext
text/x-wiki
Here are all the episodes of Doki's Adventures.
==Egypt Explorers==
===Synopsis===
Doki and his friends go to Egypt to learn about hieroglyphs.
===Release date===
December 23, 2009.
===Title in Spanish===
«Exploradores de tumbas».
==An Ice Adventure==
===Synopsis===
Fico goes to the South Pole to visit his aunt Erica but he was in the wrong place. His team, knowing this, decide to go to Antarctica to rescue him.
===Release date===
December 23, 2009
===Title in Spanish==
«Una aventura en el hielo»
b423f1e3a371af918981e3a5a2d682dcb9740398
Module:Infobox
828
5
11
2023-10-24T13:07:16Z
PercyUK
4
Created page with "local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw...."
Scribunto
text/plain
local p = {}
local args = {}
local origArgs = {}
local root
local empty_row_categories = {}
local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]'
local has_rows = false
local function fixChildBoxes(sval, tt)
local function notempty( s ) return s and s:match( '%S' ) end
if notempty(sval) then
local marker = '<span class=special_infobox_marker>'
local s = sval
s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1')
s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker)
if s:match(marker) then
s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '')
s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1')
s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1')
s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1')
end
if s:match(marker) then
local subcells = mw.text.split(s, marker)
s = ''
for k = 1, #subcells do
if k == 1 then
s = s .. subcells[k] .. '</' .. tt .. '></tr>'
elseif k == #subcells then
local rowstyle = ' style="display:none"'
if notempty(subcells[k]) then rowstyle = '' end
s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' ..
subcells[k]
elseif notempty(subcells[k]) then
if (k % 2) == 0 then
s = s .. subcells[k]
else
s = s .. '<tr><' .. tt .. ' colspan=2>\n' ..
subcells[k] .. '</' .. tt .. '></tr>'
end
end
end
end
-- the next two lines add a newline at the end of lists for the PHP parser
-- [[Special:Diff/849054481]]
-- remove when [[:phab:T191516]] is fixed or OBE
s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1')
s = mw.ustring.gsub(s, '^(%{%|)', '\n%1')
return s
else
return sval
end
end
-- Cleans empty tables
local function cleanInfobox()
root = tostring(root)
if has_rows == false then
root = mw.ustring.gsub(root, '<table[^<>]*>%s*</table>', '')
end
end
-- Returns the union of the values of two tables, as a sequence.
local function union(t1, t2)
local vals = {}
for k, v in pairs(t1) do
vals[v] = true
end
for k, v in pairs(t2) do
vals[v] = true
end
local ret = {}
for k, v in pairs(vals) do
table.insert(ret, k)
end
return ret
end
-- Returns a table containing the numbers of the arguments that exist
-- for the specified prefix. For example, if the prefix was 'data', and
-- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}.
local function getArgNums(prefix)
local nums = {}
for k, v in pairs(args) do
local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$')
if num then table.insert(nums, tonumber(num)) end
end
table.sort(nums)
return nums
end
-- Adds a row to the infobox, with either a header cell
-- or a label/data cell combination.
local function addRow(rowArgs)
if rowArgs.header and rowArgs.header ~= '_BLANK_' then
has_rows = true
root
:tag('tr')
:addClass(rowArgs.rowclass)
:cssText(rowArgs.rowstyle)
:tag('th')
:attr('colspan', '2')
:addClass('infobox-header')
:addClass(rowArgs.class)
:addClass(args.headerclass)
-- @deprecated next; target .infobox-<name> .infobox-header
:cssText(args.headerstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(rowArgs.header, 'th'))
if rowArgs.data then
root:wikitext(
'[[Category:Pages which use infobox templates with ignored data cells]]'
)
end
elseif rowArgs.data and rowArgs.data:gsub(
category_in_empty_row_pattern, ''
):match('^%S') then
has_rows = true
local row = root:tag('tr')
row:addClass(rowArgs.rowclass)
row:cssText(rowArgs.rowstyle)
if rowArgs.label then
row
:tag('th')
:attr('scope', 'row')
:addClass('infobox-label')
-- @deprecated next; target .infobox-<name> .infobox-label
:cssText(args.labelstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(rowArgs.label)
:done()
end
local dataCell = row:tag('td')
dataCell
:attr('colspan', not rowArgs.label and '2' or nil)
:addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data')
:addClass(rowArgs.class)
-- @deprecated next; target .infobox-<name> .infobox(-full)-data
:cssText(rowArgs.datastyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(rowArgs.data, 'td'))
else
table.insert(empty_row_categories, rowArgs.data or '')
end
end
local function renderTitle()
if not args.title then return end
has_rows = true
root
:tag('caption')
:addClass('infobox-title')
:addClass(args.titleclass)
-- @deprecated next; target .infobox-<name> .infobox-title
:cssText(args.titlestyle)
:wikitext(args.title)
end
local function renderAboveRow()
if not args.above then return end
has_rows = true
root
:tag('tr')
:tag('th')
:attr('colspan', '2')
:addClass('infobox-above')
:addClass(args.aboveclass)
-- @deprecated next; target .infobox-<name> .infobox-above
:cssText(args.abovestyle)
:wikitext(fixChildBoxes(args.above,'th'))
end
local function renderBelowRow()
if not args.below then return end
has_rows = true
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:addClass('infobox-below')
:addClass(args.belowclass)
-- @deprecated next; target .infobox-<name> .infobox-below
:cssText(args.belowstyle)
:wikitext(fixChildBoxes(args.below,'td'))
end
local function addSubheaderRow(subheaderArgs)
if subheaderArgs.data and
subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then
has_rows = true
local row = root:tag('tr')
row:addClass(subheaderArgs.rowclass)
local dataCell = row:tag('td')
dataCell
:attr('colspan', '2')
:addClass('infobox-subheader')
:addClass(subheaderArgs.class)
:cssText(subheaderArgs.datastyle)
:cssText(subheaderArgs.rowcellstyle)
:wikitext(fixChildBoxes(subheaderArgs.data, 'td'))
else
table.insert(empty_row_categories, subheaderArgs.data or '')
end
end
local function renderSubheaders()
if args.subheader then
args.subheader1 = args.subheader
end
if args.subheaderrowclass then
args.subheaderrowclass1 = args.subheaderrowclass
end
local subheadernums = getArgNums('subheader')
for k, num in ipairs(subheadernums) do
addSubheaderRow({
data = args['subheader' .. tostring(num)],
-- @deprecated next; target .infobox-<name> .infobox-subheader
datastyle = args.subheaderstyle,
rowcellstyle = args['subheaderstyle' .. tostring(num)],
class = args.subheaderclass,
rowclass = args['subheaderrowclass' .. tostring(num)]
})
end
end
local function addImageRow(imageArgs)
if imageArgs.data and
imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then
has_rows = true
local row = root:tag('tr')
row:addClass(imageArgs.rowclass)
local dataCell = row:tag('td')
dataCell
:attr('colspan', '2')
:addClass('infobox-image')
:addClass(imageArgs.class)
:cssText(imageArgs.datastyle)
:wikitext(fixChildBoxes(imageArgs.data, 'td'))
else
table.insert(empty_row_categories, imageArgs.data or '')
end
end
local function renderImages()
if args.image then
args.image1 = args.image
end
if args.caption then
args.caption1 = args.caption
end
local imagenums = getArgNums('image')
for k, num in ipairs(imagenums) do
local caption = args['caption' .. tostring(num)]
local data = mw.html.create():wikitext(args['image' .. tostring(num)])
if caption then
data
:tag('div')
:addClass('infobox-caption')
-- @deprecated next; target .infobox-<name> .infobox-caption
:cssText(args.captionstyle)
:wikitext(caption)
end
addImageRow({
data = tostring(data),
-- @deprecated next; target .infobox-<name> .infobox-image
datastyle = args.imagestyle,
class = args.imageclass,
rowclass = args['imagerowclass' .. tostring(num)]
})
end
end
-- When autoheaders are turned on, preprocesses the rows
local function preprocessRows()
if not args.autoheaders then return end
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
local lastheader
for k, num in ipairs(rownums) do
if args['header' .. tostring(num)] then
if lastheader then
args['header' .. tostring(lastheader)] = nil
end
lastheader = num
elseif args['data' .. tostring(num)] and
args['data' .. tostring(num)]:gsub(
category_in_empty_row_pattern, ''
):match('^%S') then
local data = args['data' .. tostring(num)]
if data:gsub(category_in_empty_row_pattern, ''):match('%S') then
lastheader = nil
end
end
end
if lastheader then
args['header' .. tostring(lastheader)] = nil
end
end
-- Gets the union of the header and data argument numbers,
-- and renders them all in order
local function renderRows()
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
for k, num in ipairs(rownums) do
addRow({
header = args['header' .. tostring(num)],
label = args['label' .. tostring(num)],
data = args['data' .. tostring(num)],
datastyle = args.datastyle,
class = args['class' .. tostring(num)],
rowclass = args['rowclass' .. tostring(num)],
-- @deprecated next; target .infobox-<name> rowclass
rowstyle = args['rowstyle' .. tostring(num)],
rowcellstyle = args['rowcellstyle' .. tostring(num)]
})
end
end
local function renderNavBar()
if not args.name then return end
has_rows = true
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:addClass('infobox-navbar')
:wikitext(require('Module:Navbar')._navbar{
args.name,
mini = 1,
})
end
local function renderItalicTitle()
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
end
end
-- Categories in otherwise empty rows are collected in empty_row_categories.
-- This function adds them to the module output. It is not affected by
-- args.decat because this module should not prevent module-external categories
-- from rendering.
local function renderEmptyRowCategories()
for _, s in ipairs(empty_row_categories) do
root:wikitext(s)
end
end
-- Render tracking categories. args.decat == turns off tracking categories.
local function renderTrackingCategories()
if args.decat == 'yes' then return end
if args.child == 'yes' then
if args.title then
root:wikitext(
'[[Category:Pages which use embedded infobox templates with the title parameter]]'
)
end
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:Articles which use infobox templates with no data rows]]')
end
end
--[=[
Loads the templatestyles for the infobox.
TODO: load base templatestyles here rather than in MediaWiki:Common.css
We aren't doing it here yet because there are 4-5000 pages with 'raw' infobox
tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :).
When we do this we should clean up the inline CSS below too.
Will have to do some bizarre conversion category like with sidebar.
]=]
local function loadTemplateStyles()
local frame = mw.getCurrentFrame()
-- See function description
-- local base_templatestyles = frame:extensionTag{
-- name = 'templatestyles', args = { src = cfg.i18n.templatestyles }
-- }
local templatestyles = ''
if args['templatestyles'] then templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = args['templatestyles'] }
}
end
local child_templatestyles = ''
if args['child templatestyles'] then child_templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = args['child templatestyles'] }
}
end
local grandchild_templatestyles = ''
if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = args['grandchild templatestyles'] }
}
end
return table.concat({
-- base_templatestyles, -- see function description
templatestyles,
child_templatestyles,
grandchild_templatestyles
})
end
-- Specify the overall layout of the infobox, with special settings if the
-- infobox is used as a 'child' inside another infobox.
local function _infobox()
if args.child ~= 'yes' then
root = mw.html.create('table')
root
:addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox')
:addClass(args.bodyclass)
-- @deprecated next; target .infobox-<name>
:cssText(args.bodystyle)
renderTitle()
renderAboveRow()
else
root = mw.html.create()
root
:wikitext(args.title)
end
renderSubheaders()
renderImages()
preprocessRows()
renderRows()
renderBelowRow()
renderNavBar()
renderItalicTitle()
renderEmptyRowCategories()
renderTrackingCategories()
cleanInfobox()
return loadTemplateStyles() .. root
end
-- If the argument exists and isn't blank, add it to the argument table.
-- Blank arguments are treated as nil to match the behaviour of ParserFunctions.
local function preprocessSingleArg(argName)
if origArgs[argName] and origArgs[argName] ~= '' then
args[argName] = origArgs[argName]
end
end
-- Assign the parameters with the given prefixes to the args table, in order, in
-- batches of the step size specified. This is to prevent references etc. from
-- appearing in the wrong order. The prefixTable should be an array containing
-- tables, each of which has two possible fields, a "prefix" string and a
-- "depend" table. The function always parses parameters containing the "prefix"
-- string, but only parses parameters in the "depend" table if the prefix
-- parameter is present and non-blank.
local function preprocessArgs(prefixTable, step)
if type(prefixTable) ~= 'table' then
error("Non-table value detected for the prefix table", 2)
end
if type(step) ~= 'number' then
error("Invalid step value detected", 2)
end
-- Get arguments without a number suffix, and check for bad input.
for i,v in ipairs(prefixTable) do
if type(v) ~= 'table' or type(v.prefix) ~= "string" or
(v.depend and type(v.depend) ~= 'table') then
error('Invalid input detected to preprocessArgs prefix table', 2)
end
preprocessSingleArg(v.prefix)
-- Only parse the depend parameter if the prefix parameter is present
-- and not blank.
if args[v.prefix] and v.depend then
for j, dependValue in ipairs(v.depend) do
if type(dependValue) ~= 'string' then
error('Invalid "depend" parameter value detected in preprocessArgs')
end
preprocessSingleArg(dependValue)
end
end
end
-- Get arguments with number suffixes.
local a = 1 -- Counter variable.
local moreArgumentsExist = true
while moreArgumentsExist == true do
moreArgumentsExist = false
for i = a, a + step - 1 do
for j,v in ipairs(prefixTable) do
local prefixArgName = v.prefix .. tostring(i)
if origArgs[prefixArgName] then
-- Do another loop if any arguments are found, even blank ones.
moreArgumentsExist = true
preprocessSingleArg(prefixArgName)
end
-- Process the depend table if the prefix argument is present
-- and not blank, or we are processing "prefix1" and "prefix" is
-- present and not blank, and if the depend table is present.
if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then
for j,dependValue in ipairs(v.depend) do
local dependArgName = dependValue .. tostring(i)
preprocessSingleArg(dependArgName)
end
end
end
end
a = a + step
end
end
-- Parse the data parameters in the same order that the old {{infobox}} did, so
-- that references etc. will display in the expected places. Parameters that
-- depend on another parameter are only processed if that parameter is present,
-- to avoid phantom references appearing in article reference lists.
local function parseDataParameters()
preprocessSingleArg('autoheaders')
preprocessSingleArg('child')
preprocessSingleArg('bodyclass')
preprocessSingleArg('subbox')
preprocessSingleArg('bodystyle')
preprocessSingleArg('title')
preprocessSingleArg('titleclass')
preprocessSingleArg('titlestyle')
preprocessSingleArg('above')
preprocessSingleArg('aboveclass')
preprocessSingleArg('abovestyle')
preprocessArgs({
{prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}}
}, 10)
preprocessSingleArg('subheaderstyle')
preprocessSingleArg('subheaderclass')
preprocessArgs({
{prefix = 'image', depend = {'caption', 'imagerowclass'}}
}, 10)
preprocessSingleArg('captionstyle')
preprocessSingleArg('imagestyle')
preprocessSingleArg('imageclass')
preprocessArgs({
{prefix = 'header'},
{prefix = 'data', depend = {'label'}},
{prefix = 'rowclass'},
{prefix = 'rowstyle'},
{prefix = 'rowcellstyle'},
{prefix = 'class'}
}, 50)
preprocessSingleArg('headerclass')
preprocessSingleArg('headerstyle')
preprocessSingleArg('labelstyle')
preprocessSingleArg('datastyle')
preprocessSingleArg('below')
preprocessSingleArg('belowclass')
preprocessSingleArg('belowstyle')
preprocessSingleArg('name')
-- different behaviour for italics if blank or absent
args['italic title'] = origArgs['italic title']
preprocessSingleArg('decat')
preprocessSingleArg('templatestyles')
preprocessSingleArg('child templatestyles')
preprocessSingleArg('grandchild templatestyles')
end
-- If called via #invoke, use the args passed into the invoking template.
-- Otherwise, for testing purposes, assume args are being passed directly in.
function p.infobox(frame)
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
else
origArgs = frame
end
parseDataParameters()
return _infobox()
end
-- For calling via #invoke within a template
function p.infoboxTemplate(frame)
origArgs = {}
for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end
parseDataParameters()
return _infobox()
end
return p
8da3d8cb2583739d63030681ca84df90700981fa
Template:Infobox
10
6
12
2023-10-24T13:08:28Z
PercyUK
4
Created page with "{{#invoke:Infobox|infobox}}<noinclude> Uses [[Module:Infobox|Wikipedia infobox]] {{Infobox | bodystyle = float: right; clear: right; margin: 0 0 .5em 1em; width: 270px; border: 1px solid #eaecf0; background: #f8f9fa; | title = title | above = above | subheader = subheader | subheader2 = subheader2 <br> ―— | image = image | caption = caption | image2 = image2 | caption2 = caption2 <br> ―— | header1 = header1 | label2 = label2 | data2 = data..."
wikitext
text/x-wiki
{{#invoke:Infobox|infobox}}<noinclude>
Uses [[Module:Infobox|Wikipedia infobox]]
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2 <br> ―—
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2 <br> ―—
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3 <br> ―—
| below = below
}}
<pre>
{{Infobox
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; bodystyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| bodystyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; titlestyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| titlestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| titlestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; abovestyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| abovestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| abovestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; imagestyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| imagestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| imagestyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; captionstyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| captionstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| captionstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; rowstyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| rowstyle2 = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| rowstyle2 = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; headerstyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| headerstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| headerstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; labelstyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| labelstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| labelstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; datastyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| datastyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| datastyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
<br clear=all>
; belowstyle
{{Infobox
| bodystyle =
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 270px;
border: 1px solid #eaecf0;
background: #f8f9fa;
| belowstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
<pre>
{{Infobox
| belowstyle = background:beige
| title = title
| above = above
| subheader = subheader
| subheader2 = subheader2
| image = image
| caption = caption
| image2 = image2
| caption2 = caption2
| header1 = header1
| label2 = label2
| data2 = data2
| data3 = data3
| below = below
}}
</pre>
</noinclude>
4cd5f3989507bd0cf4f885a72aef5957c804a05c
User talk:Pieretix
3
7
14
2023-10-24T13:25:30Z
PercyUK
4
Created page with "== Template:Series Infobox == I have added the missing part to use [[Template:Infobox|Wikipedia infoboxes]]. I have created a clone of the Fandom infobox for [[Template:Series Infobox]] as an example. Miraheze has direct access to [https://commons.wikimedia.org commons.wikimedia.org] so you can use these images without needing to [[Special:NewFiles|upload to the wiki]]. I have used these images in the example. <br> - ~~~~"
wikitext
text/x-wiki
== Template:Series Infobox ==
I have added the missing part to use [[Template:Infobox|Wikipedia infoboxes]]. I have created a clone of the Fandom infobox for [[Template:Series Infobox]] as an example.
Miraheze has direct access to [https://commons.wikimedia.org commons.wikimedia.org] so you can use these images without needing to [[Special:NewFiles|upload to the wiki]]. I have used these images in the example.
<br> - [[User:PercyUK|PercyUK]] ([[User talk:PercyUK|talk]]) 13:25, 24 October 2023 (UTC)
5f0748a4c0855e44dd3230376d9a11e785b068dd